/* Shared Modern UI footer. The classic footer is unchanged when the flag is off. */
#curriculog-footer.modern-ui-footer {
  align-items: stretch;
  background: var(--proposal-page, #f7fafc);
  border-top: 1px solid var(--proposal-border, #e2e8f0);
  box-sizing: border-box;
  color: var(--proposal-heading, #343e4f);
  display: flex;
  flex-direction: column;
  font-family: var(--proposal-font-family, "Gilroy", "Roboto Condensed", Helvetica, Arial, sans-serif);
  font-size: 14px;
  font-weight: var(--proposal-font-weight-regular, 400);
  gap: 0;
  height: 127px;
  line-height: 20px;
  padding: 32px 48px 0;
  text-align: left;
  width: 100%;
}

#curriculog-footer.modern-ui-footer .modern-footer-meta-row {
  align-items: flex-start;
  display: flex;
  flex: 1 0 0;
  justify-content: space-between;
  min-height: 1px;
  width: 100%;
}

#curriculog-footer.modern-ui-footer .modern-footer-support-links,
#curriculog-footer.modern-ui-footer .modern-footer-copyright {
  align-items: center;
  display: flex;
  min-width: 0;
}

#curriculog-footer.modern-ui-footer .modern-footer-support-links {
  gap: 6px;
}

#curriculog-footer.modern-ui-footer .modern-footer-copyright {
  gap: 6px;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

#curriculog-footer.modern-ui-footer p {
  margin: 0;
}

#curriculog-footer.modern-ui-footer a {
  color: inherit;
  font-size: 14px;
  font-weight: var(--proposal-font-weight-semibold, 600);
  letter-spacing: 0.28px;
  text-decoration: none;
}

#curriculog-footer.modern-ui-footer a:hover,
#curriculog-footer.modern-ui-footer a:focus-visible {
  text-decoration: underline;
}

#curriculog-footer.modern-ui-footer .modern-footer-version {
  font-size: 14px;
  font-weight: var(--proposal-font-weight-regular, 400);
  letter-spacing: 0.28px;
}

/* Keep the existing WalkMe launcher outside the footer flow, aligned to the design. */
body.modern-ui-body #walkme-player {
  bottom: 0 !important;
  left: auto !important;
  position: fixed !important;
  right: 20px !important;
  top: auto !important;
  z-index: 1000 !important;
}

@media (max-width: 640px) {
  #curriculog-footer.modern-ui-footer {
    gap: 12px;
    height: auto;
    min-height: 127px;
    padding: 24px 20px 0;
  }

  #curriculog-footer.modern-ui-footer .modern-footer-meta-row {
    flex-direction: column;
    gap: 12px;
  }

  #curriculog-footer.modern-ui-footer .modern-footer-copyright {
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
  }
}
